//
//  xxBuild_dic_gc.m
//  MacStockApp
//
//  Created by Andy MacPro on 12/11/14.
//
//

#import "xxBuild_dic_gc.h"
#import "GBall.h"
@implementation xxBuild_dic_gc

//建立字典
+(NSMutableDictionary *)build_dic_gc:(NSString*)googlecode _yc:(NSString *)yahooCode _bc:(NSString *) bloombergCode _xc:(NSString *)xxtradeCode _gv:(BOOL)google_valid _yv:(BOOL)yahoo_valid _bv:(BOOL)bloomberg_valid _xv:(BOOL)xxtradexx_valid{
    
    //輸出返回的字典
    NSMutableDictionary *outaic =[[[NSMutableDictionary alloc] init]autorelease];
    
    //代碼 有效性
    {
        [outaic setObject:googlecode forKey:Code_Google];
        [outaic setObject:yahooCode  forKey:Code_Yahoo];
        [outaic setObject:bloombergCode  forKey:Code_Bloomberg];
        
        [outaic setObject:[NSNumber numberWithBool:google_valid] forKey:isValid_Google];
        [outaic setObject:[NSNumber numberWithBool:yahoo_valid]  forKey:isValid_Yahoo];
        [outaic setObject:[NSNumber numberWithBool:bloomberg_valid]  forKey:isValid_Bloomberg];
        
    }
    
    
    
    return outaic;
}

@end
